<%@page import="com.qdu.impl.CommontImpl"%>
<%@page import="java.util.List"%>
<%@page import="java.text.NumberFormat"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>计算机图书网上专营店</TITLE>
        <META http-equiv=Content-Type content="text/html; charset=UTF-8">
        <LINK 
            href=img/ys1.css type=text/css rel=stylesheet>


        <STYLE type=text/css>
            #div0{
                width:100%;
                height:50px;
                background-color:#FFCCCC;
                position:fixed;
                z-index:10;
                margin:-10px -10px 0px -10px;
            }
            #top-page{
                float:right;
                height:10px;
                white-space:nowrap;
                margin:25px 0px 0px 0px;

            }	
            #logo{
                height:50px;
                width:50px;
                float:left;
            }

        </STYLE>

        <META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
        <%
            String message = (String) request.getAttribute("message");
            if (message == null) {
                message = "";
            }
            if (!message.trim().equals("")) {
                out.println("<script language='javascript'>");
                out.println("alert('" + message + "');");
                out.println("</script>");
            }
            request.removeAttribute("message");

        %>
    <BODY leftMargin=0 topMargin=0 background="/J02_T13_P04/pic/123456.jpg" bgColor=#F0FFFF style=" background-repeat:no-repeat ;
          background-size:100% 100%;
          background-attachment: fixed;">

        <div id="div0">
            <div id="logo">
                <img src="img/logo.jpg" style="width:100%;height:100%; margin-left:15%">
            </div>
            <div id="top-page" align="right" style="margin-right:5%">
                <div align=center>
                    <a href="/J02_T13_P04/index.jsp"><FONT color=#ffffff>首页</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="../newbook.jsp"><FONT color=#ffffff>最新图书</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/fenlei.jsp"><FONT color=#ffffff>图书分类</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/allbooklist.jsp"><FONT color=#ffffff>全部图书</FONT></a><FONT color=#ffffff> │ </FONT>
                    <a href="/J02_T13_P04/admin/login.jsp" target=_blank><FONT color=#ffffff>管理入口</FONT></a>
                </div>
            </div>
        </div>






        <TABLE cellSpacing=0 cellPadding=0 width=779 align=center>

            <TBODY>
                <TR>
                    <TD vAlign=top width=779>
                        <%                    String name = (String) session.getAttribute("name");
                            if (name != null) {
                        %>
                        <table cellspacing=0 cellpadding=3 width="100%" border=0  style="margin-top:7%">
                            <tbody>
                                <tr>
                                <tr>
                                    <td width="85%"><table cellspacing=0 cellpadding=2 width="100%" 
                                                           border=0>
                                            <tbody>
                                                <tr>
                                                    <td width="100%"><table  align=center  cellspacing=0 cellpadding=2 width="100%" border=0>
                                                            <tbody>
                                                                <tr>
                                                                    <td width=25% align=center >序号</td>
                                                                    <td  width=25%   align=center >内容</td>
                                                                    <td  width=25%   align=center >发布人</td>
                                                                    <td  width=25%   align=center >发布时间</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <%
                                                            String id = request.getParameter("id").trim();
                                                            List listt3 = new CommontImpl().getCommont(Integer.parseInt(id));
                                                            NumberFormat format = NumberFormat.getNumberInstance();
                                                            format.setMaximumFractionDigits(2);
                                                            for (int i = 0; i < listt3.size(); i++) {
                                                                List list2 = (List) listt3.get(i);

                                                        %>
                                                <tr>
                                                    <td width="100%"><table  align=center  cellspacing=0 cellpadding=2 width="100%" border=0>
                                                            <tbody>
                                                                <tr>
                                                                    <td width=25% align=center ><%=i + 1%></td>
                                                                    <td  width=25%   align=center ><%=list2.get(0).toString()%></td>
                                                                    <td  width=25%   align=center ><%=list2.get(1).toString()%></td>
                                                                    <td  width=25%   align=center ><%=list2.get(2).toString()%></td>
                                                                </tr>
                                                            </tbody>
                                                        </table></td>
                                                </tr>
                                                <%
                                                    }
                                                %>
                                            </tbody>
                                        </table></td>
                                </tr>
                            </tbody>
                        </table>
                        <br><br><br><br><br><br><br>
                        <form action="CommonUtil.jsp" method=post>
                            <table align=center width=40%><input type=hidden name=id value=<%=id%>>
                                <tr><input type=hidden name=method value=add>
                                <td align=center><textarea name=content rows=5 cols=40></textarea><br><br><br>
                                    <input type=submit value="发表评论"></td>


                                </tr>
                            </table>


                        </form>
                        <%} else {
                            }%>
        
        <br><br><br><br><br><br><br><br><br>
        <div style="background:#CCFFFF;color:white;height:13;"align=center >2020-2030 网上书店  版权所有</div>
        <div style="background:#FFCCCC;color:white;height:13;"align=center >2020-2030 网上书店  版权所有</div>
        <div style="background:#CCFFFF;color:white;height:13;"align=center >2020-2030 网上书店  版权所有</div>
</TABLE>
    </BODY></HTML>
